package com.museum.core.utils;


import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component;

/**
 * @author LB
 * @version 1.0
 * @date 2020/12/26 20:42
 */
@Component
public class JsonToObj<T> {
    public Object JsonToObject(T obj,String value){
        return JSONObject.parseObject(value,obj.getClass());
    }
}
